#ifndef __CAMERATOOL_H__
#define __CAMERATOOL_H__

#include "ITool.h"

class CameraTool : public ITool
{
	void BeginClick(Skin *skin, wxPoint p, wxMouseEvent &e)
	{
		_oldMouse = e.GetPosition();
	}

	wxPoint _oldMouse;
	void MouseMove(Skin *skin, wxMouseEvent &e)
	{
		wxPoint delta (e.GetX() - _oldMouse.x, e.GetY() - _oldMouse.y);

		if (glCanvas->_mouseButton == glCanvas->GetCameraRotateButton())
			glCanvas->RotateView(delta, 1);
		else if (glCanvas->_mouseButton == glCanvas->GetCameraZoomButton())
			glCanvas->ScaleView(delta, 1);

		_oldMouse = e.GetPosition();
	}

	bool MouseMoveOnSkin(fixedarray<int> &pixels, Skin *skin, int x, int y)
	{
		return false;
	}

	bool RequestPreview(fixedarray<int> &pixels, Skin *skin, int x, int y)
	{
		return false;
	}

	bool EndClick(fixedarray<int> &pixels, Skin *skin, wxMouseEvent &e)
	{
		return false;
	}

	wxString GetStatusLabelText()
	{
		return "";//Editor.GetLanguageString("T_CAMERA");
	}
};

#endif